package com.kazu.utils.exception;

/**
 * @Author kazu
 * @Date 2023/2/19 12:56
 * @Version 1.0
 *
 * 全局异常处理接口
 */
@SuppressWarnings({"all"})
public enum GlobalExceptionEnum {

	UNKNOW_EXCEPTION(500, "系统未知异常"),
	VALID_EXCEPTION(501, "数据校验异常");
	
	/**
	 * 状态码
	 */
	private Integer code;
	
	/**
	 * 提示信息
	 */
	private String msg;
	
	GlobalExceptionEnum(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}
	
	public Integer getCode() {
		return this.code;
	}
	
	public String getMsg() {
		return this.msg;
	}
	
}
